For example, just record the uncertain path contained in PHP:
This is caused by the include path of PHP. Test it by yourself and summarize it as follows.
DefinitionA = include file B = file included by a c = file included by B That is to say, a
Several PHP server architectures are strongly recommended !!! I found a good article and introduced in detail several architectures of the current PHP Server. I specially reprinted it. I strongly recommend it !!? Nginx + PHP + PHP-FPM (FastCGI) on
Require and include path issues in PHP, Requireinclude
1 absolute path, relative path, and indeterminate path
Relative path
A relative path refers to a path that begins with a.
Copy the Code code as follows:./a/a.php (relative to current directory).
Summary of require and include path issues in PHP, Requireinclude
1 absolute path, relative path, and indeterminate path
Relative path
A relative path refers to a path that begins with a.
./a/a.php (相对当前目录) ../common.inc.php (相对上级目录),
Absolute
When we were beginners in PHP, we were often bewildered by the absolute path and relative path of PHP. Path problems often cause the include and require commands not to load onto the specified page, causing the Web program to run an error. This
PHP server of several architectures, highly recommended!!!
Found a good article, very detailed introduction of the current PHP server several architectures, specially
For details about the require and include paths in PHP, requireinclude. For details about the require and include paths in PHP, the absolute path, relative path, and relative path of the undetermined paths refer. for example, detailed descriptions
This article mainly introduces the detailed explanation of the require and include paths in PHP. For more information, see
This article mainly introduces the detailed explanation of the require and include paths in PHP. For more information, see
For the solution to the path problem in PHP, read the solution to the path problem in PHP. bylongnetpro introduction: the inclusion path in PERL and PHP has always been a hard problem to solve, it is mainly related to the operating system and WEB
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.